package uuuu;
//import 包名.类名
public class Student extends uuuu.b {
    //属性
    Lesson[] list=new Lesson[2];
    String b;
    String d;
    String lesson;
          //构造方法(与类名同名)(绝对没有void)
     Student(int id, String name, String sex, String lesson, String b, String d) {
        super(id, name, sex);
        this.id=id;//(把参数赋值给属性)
        this.name=name;
        this.sex=sex;
        this.lesson = lesson;
        this.b = b;
        this.d = d;
    }
    void setList(Lesson[] list){
         this.list=list;
    }

    public String toString() {
        return "编号:" + id + "   姓名:" + name + "   性别:" + sex + "   课程：" + lesson;
    }
            //普通的构造方法
    public void xuanke() {

        if (b == "已选") ;
        {
            System.out.println("这个学生已选课");
        }
    }

    public void delete() {

        if (d == "未退") ;
        {
            System.out.println("这个学生未退课");
        }
    }
}